package com.tour.silvertour.Config;

import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @Title: SecurityConfig
 * @Author 苗桐菲
 * @Package com.tour.silvertour.Config
 * @Date 2024/3/31 14:08
 */
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    public void configure(WebSecurity web) throws Exception {
        // 忽略对所有路径的访问限制，包括所有子路径和/css、/html路径
        web.ignoring().antMatchers("/**/**", "/css", "/html");
    }
}